package studio.wetrack.accountService.auth.domain;


/**
 * Created by chen on 2018/6/11.
 * 例子
 */
public enum Role {

    DEFAULT("DEFAULT","默认权限");

    private final String roleName;
    private final String desc;

    Role(String name,String desc){
        this.roleName = name;
        this.desc = desc;
    }

    public final String getRoleName(){
        return roleName;
    }

    public final String getDesc(){
        return desc;
    }

    public RoleClass enumToClass(){
        RoleClass roleClass = new  RoleClass();
        roleClass.setRoleName(this.getRoleName());
        roleClass.setDesc(this.getDesc());
        return roleClass;
    }
}
